@RestController
@RequestMapping("/api/comment-query")
public class CommentQueryController {
    @Autowired
    private CommentQueryService commentQueryService;

    @PostMapping("/playlist")
    public ResponseEntity<List<Comment>> getCommentsByPlaylistId(@RequestBody CommentQueryRequest request) {
        List<Comment> comments = commentQueryService.getCommentsByPlaylistId(request.getPlaylistId());
        return ResponseEntity.ok(comments);
    }
}
